Skip to main content

Thread: Bash Scripting - How do I search a file?


i'm trying write bash script reads value file. want take value , search file same value, , tell me line it's on.

need know how search file , print line number.

if input 4, , file being searched contained
code:
1 3 4 6 8 9
then return
code:
line 3
any appreciated.

i use awk instead of bash. homework?


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [SOLVED] Bash Scripting - How do I search a file?


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support