×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles

    Talk:Awk: Difference between revisions

    Content added Content deleted
    imported>DrOwl
    No edit summary
     
    imported>DrOwl
    No edit summary
     
    Line 1: Line 1:



    oki main page looks all crazzy, here is an example of awk usage (ok also sed and ls too) if any one has suggestions for a better way to do this please add a new version =)
    oki main page looks all crazzy, here is an example of awk usage (ok also sed and ls too) if any one has suggestions for a better way to do this please add a new version =)



    === File Rename ===


    this is an example use to rename some files.
    this is an example use to rename some files.

    Latest revision as of 16:52, 10 October 2005

    oki main page looks all crazzy, here is an example of awk usage (ok also sed and ls too) if any one has suggestions for a better way to do this please add a new version =)


    File Rename[edit]

    this is an example use to rename some files.

    ls [OriginalBit*] | awk '{print "mv " $1 " --$1}' | sed 's/--OriginalBit/NewBit/g' > rename.temp.sh | chmod u+x rename.temp.sh | ./rename.temp.sh 
    

    of course this leaves the file behind. if you are goign to use this i suggest you check the output after sed, before running the script.

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.